package com.situ.bean;

import java.time.LocalDateTime;

public class Category {
    private int id;
    private String name;
    private String imgurl;
    private int pid;
    //存储父级分类得信息
    private Category parent;

    private int isdel;
    private LocalDateTime inserttime;
    private LocalDateTime updatetime;

    public Category getParent() {
        return parent;
    }

    public void setParent(Category parent) {
        this.parent = parent;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public int getIsDel() {
        return isdel;
    }

    public void setIsDel(int isDel) {
        this.isdel = isDel;
    }

    public LocalDateTime getInsertTime() {
        return inserttime;
    }

    public void setInsertTime(LocalDateTime insertTime) {
        this.inserttime = insertTime;
    }

    public LocalDateTime getUpdateTime() {
        return updatetime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updatetime = updateTime;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImgUrl() {
        return imgurl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgurl = imgUrl;
    }

    @Override
    public String toString() {
        return "Category{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", imgUrl='" + imgurl + '\'' +
                '}';
    }
}
